package com.example.ch03updown.controller.ex;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class AllExceptionHandler {

    @ExceptionHandler(value = {Exception.class})
    public String ex(){
        System.out.println("出现异常");
        return null;
    }
}
